package project.menu.mainmenu;

import controllers.IAutoservice;
import project.menu.IMenu;
import project.menu.IMenuItem;
import project.work.Navigator;

public class WorkerWithGarage implements IMenuItem {

	private String name = "Work with garage";
	private final Integer id = 1;
	private static IMenu submenu;
	private Navigator navigator;
	
	public WorkerWithGarage(){
		navigator=Navigator.getInstance();
	}

	
	
	public static void setMenu(IMenu menu){
		 submenu=menu;
	}
	
	public void action(IAutoservice autoservice) {
		navigator.drawMenu(submenu);
	}
	
	public Integer getId(){
		return id;
	}
	
	public String getNameItem() {
		return name;
	}

	
}
